package ace.module.oauth2.server.sdk.core.feign.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Set;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author caspar
 * @date 2023/3/3 9:41
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(title = "Access Token Introspect Object")
public class Oauth2IntrospectDto {
  @Schema(title = "active")
  private Boolean active;

  private String sub;
  private Set<String> aud;
  private Integer nbf;
  private String scope;
  private String iss;
  private Integer exp;
  private Integer iat;
  private String jti;

  @JsonProperty("client_id")
  private String clientId;

  @JsonProperty("token_type")
  private String tokenType;
}
